Skip to content

ci: run mutation testing with Infection - #17

Merged
roxblnfk merged 3 commits into
1.xfrom
ci/infection
Nov 20, 2026
Merged

roxblnfk merged 3 commits into
1.xfrom
ci/infection

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What was changed

  • Infection runs on Testo through testo/bridge-infection, installed in vendor-bin/infection; composer infect runs it locally, composer infect:ci in CI.
  • It mutates src against the suites that need no database server (DB_DRIVERS=sqlite): Unit and Feature/SQLite. CI fails below 70% MSI / covered MSI.
  • The new 🧬 Mutation Tests workflow calls the shared cycle/gh-actions Infection workflow (@feat/infection until feat(infection): add a reusable workflow for mutation testing with Infection gh-actions#18 lands) and publishes the report to the Stryker dashboard on pushes to 1.x; the README shows the badge.

Why?

Line coverage says which code the tests run, not whether they would notice it breaking; the MSI tracks that.

Checklist

  • Tested
    • Tested manually: composer infect locally on PHP 8.4, MSI 72% (100% mutation code coverage)
    • Unit tests added

@roxblnfk
roxblnfk requested a review from a team November 20, 2026 15:22
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.69%. Comparing base (be8962e) to head (7ddb866).
⚠️ Report is 1 commits behind head on 1.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              1.x      #17   +/-   ##
=======================================
  Coverage   99.69%   99.69%           
=======================================
  Files          30       30           
  Lines         330      330           
=======================================
  Hits          329      329           
  Misses          1        1           
Flag Coverage Δ
mysql 97.56% <ø> (ø)
postgres 97.56% <ø> (ø)
sqlite 97.56% <ø> (ø)
sqlserver 97.56% <ø> (ø)
unit 43.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roxblnfk
roxblnfk merged commit d8a78ab into 1.x Nov 20, 2026
22 checks passed
@roxblnfk
roxblnfk deleted the ci/infection branch November 20, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant